aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/thematique/[slug].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
commit4e7a96c5a831882463802cdd4f84fe1464969cb0 (patch)
tree528e2766120465bd74e94a8f5d37db7c3cd5a3cc /src/pages/thematique/[slug].tsx
parent3a20d3ef2d6fcb6c77ca5ad6aeaf6179d23ecb3e (diff)
refactor: use formatjs swc plugin
I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id.
Diffstat (limited to 'src/pages/thematique/[slug].tsx')
-rw-r--r--src/pages/thematique/[slug].tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx
index edc4296..db22214 100644
--- a/src/pages/thematique/[slug].tsx
+++ b/src/pages/thematique/[slug].tsx
@@ -128,6 +128,7 @@ const Thematic: NextPageWithLayout<ThematicProps> = ({
ariaLabel={intl.formatMessage({
defaultMessage: 'Table of Contents',
description: 'ThematicPage: ToC sidebar aria-label',
+ id: 'YwvYfw',
})}
>
<ToC />
@@ -141,6 +142,7 @@ const Thematic: NextPageWithLayout<ThematicProps> = ({
{
defaultMessage: 'All posts in {name}',
description: 'ThematicPage: posts list title',
+ id: 'P7fxX2',
},
{ name: thematic.title }
)}
@@ -154,6 +156,7 @@ const Thematic: NextPageWithLayout<ThematicProps> = ({
ariaLabel={intl.formatMessage({
defaultMessage: 'Sidebar',
description: 'ThematicPage: right sidebar aria-label',
+ id: 'syLgY9',
})}
>
<RelatedTopics topics={relatedTopics.current} />
@@ -162,6 +165,7 @@ const Thematic: NextPageWithLayout<ThematicProps> = ({
title={intl.formatMessage({
defaultMessage: 'Others thematics',
description: 'ThematicPage: thematics list widget title',
+ id: 'norrGp',
})}
/>
</Sidebar>